package com.app.babygo.exceptions;

public class DBException extends Exception {

	/**
	 * General DB Exception
	 */
	private static final long serialVersionUID = 1L;
	protected String message;
	
	public DBException(String message){
		this.message = message;
	}
	
	public static int getErrorCode(){
		return 400;
	}
	
	public String getTitle(){
		return "General Database Error";
	}
	
	@Override
	public String getMessage(){
		return message;
	}
}
